package com.xrc;

import java.util.Scanner;

public class Exercise07 {
    public static void main(String[] args) {
/*
        int x=1;
        int j;
        int y;
        while(x<=9){
            j=1;
            while(j<=(9-x)){
                System.out.print(" ");
                j++;
            }
            y=1;
            while(y<=(2*x-1)){
                System.out.print(x);
                y++;
            }
            x++;
            System.out.println();
        }*/
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        for (int i = 0; i <= a; i++) {
            //打印空格
            for(int j=0;j<a-i;j++){
                System.out.print(" ");
            }
            //打印数字
            for(int y=0;y<i*2-1;y++){
                System.out.print(i);
            }System.out.println("");
        }
        //输出换行

    }


}
